$(document).ready(function(){
 	function getDate(){
   		$.ajax({
   			type: "POST",
   			url: "../lib/fecha.php",
   			timeout:1000,
   			success: function(msg1)
   			{
	   			$(".date-text").html(msg1);
	   			window.setTimeout(getDate,1000);
	   		},
		});
	}
	getDate();
});	